<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
  <c:url value="/scripts/jquery.min.js" var="url" />
  <script src="${url}"></script>
  <script >
  <!--//
  $(document).ready(function() {
	  alert("1");
    $('#test').click( function () {
        alert("2");
      $.getJSON('ws/test', function(data) {
        alert(data.id);
      });
      alert("3");
    });
  });
  //-->
  </script>
</head>
<body>
  <div id="test">test</div>
</body>
</html>